Optimal. Leaf size=29 \[ \frac{\tanh ^{-1}(\sin (c+d x))}{2 d}-\frac{\tan ^{-1}(\sin (c+d x))}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0375861, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {298, 203, 206} \[ \frac{\tanh ^{-1}(\sin (c+d x))}{2 d}-\frac{\tan ^{-1}(\sin (c+d x))}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 298
Rule 203
Rule 206
Rubi steps
\begin{align*} \int \frac{\tan (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^2}{1-x^4} \, dx,x,\sin (c+d x)\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sin (c+d x)\right )}{2 d}-\frac{\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sin (c+d x)\right )}{2 d}\\ &=-\frac{\tan ^{-1}(\sin (c+d x))}{2 d}+\frac{\tanh ^{-1}(\sin (c+d x))}{2 d}\\ \end{align*}
Mathematica [A] time = 0.0352153, size = 24, normalized size = 0.83 \[ \frac{\tanh ^{-1}(\sin (c+d x))-\tan ^{-1}(\sin (c+d x))}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.102, size = 42, normalized size = 1.5 \begin{align*} -{\frac{\arctan \left ( \sin \left ( dx+c \right ) \right ) }{2\,d}}+{\frac{\ln \left ( 1+\sin \left ( dx+c \right ) \right ) }{4\,d}}-{\frac{\ln \left ( \sin \left ( dx+c \right ) -1 \right ) }{4\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.61021, size = 47, normalized size = 1.62 \begin{align*} -\frac{2 \, \arctan \left (\sin \left (d x + c\right )\right ) - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.519186, size = 111, normalized size = 3.83 \begin{align*} -\frac{2 \, \arctan \left (\sin \left (d x + c\right )\right ) - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (-\sin \left (d x + c\right ) + 1\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan{\left (c + d x \right )}}{\sin{\left (c + d x \right )} + \csc{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.19726, size = 50, normalized size = 1.72 \begin{align*} -\frac{2 \, \arctan \left (\sin \left (d x + c\right )\right ) - \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right ) + \log \left ({\left | \sin \left (d x + c\right ) - 1 \right |}\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]